package huanxin;

import demo.JfinalConfig;

import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MapMessage;
import java.util.Enumeration;

/**
 * Created by Administrator on 2017/9/12 0012.
 */
public class Test {
    public static void main(String[] args) {
        MapMessage message = new MapMessage() {
            @Override
            public boolean getBoolean(String s) throws JMSException {
                return false;
            }

            @Override
            public byte getByte(String s) throws JMSException {
                return 0;
            }

            @Override
            public short getShort(String s) throws JMSException {
                return 0;
            }

            @Override
            public char getChar(String s) throws JMSException {
                return 0;
            }

            @Override
            public int getInt(String s) throws JMSException {
                return 1;
            }

            @Override
            public long getLong(String s) throws JMSException {
                return 0;
            }

            @Override
            public float getFloat(String s) throws JMSException {
                return 0;
            }

            @Override
            public double getDouble(String s) throws JMSException {
                return 0;
            }

            @Override
            public String getString(String s) throws JMSException {
                return null;
            }

            @Override
            public byte[] getBytes(String s) throws JMSException {
                return new byte[0];
            }

            @Override
            public Object getObject(String s) throws JMSException {
                return null;
            }

            @Override
            public Enumeration getMapNames() throws JMSException {
                return null;
            }

            @Override
            public void setBoolean(String s, boolean b) throws JMSException {

            }

            @Override
            public void setByte(String s, byte b) throws JMSException {

            }

            @Override
            public void setShort(String s, short i) throws JMSException {

            }

            @Override
            public void setChar(String s, char c) throws JMSException {

            }

            @Override
            public void setInt(String s, int i) throws JMSException {

            }

            @Override
            public void setLong(String s, long l) throws JMSException {

            }

            @Override
            public void setFloat(String s, float v) throws JMSException {

            }

            @Override
            public void setDouble(String s, double v) throws JMSException {

            }

            @Override
            public void setString(String s, String s2) throws JMSException {

            }

            @Override
            public void setBytes(String s, byte[] bytes) throws JMSException {

            }

            @Override
            public void setBytes(String s, byte[] bytes, int i, int i2) throws JMSException {

            }

            @Override
            public void setObject(String s, Object o) throws JMSException {

            }

            @Override
            public boolean itemExists(String s) throws JMSException {
                return false;
            }

            @Override
            public String getJMSMessageID() throws JMSException {
                return null;
            }

            @Override
            public void setJMSMessageID(String s) throws JMSException {

            }

            @Override
            public long getJMSTimestamp() throws JMSException {
                return 0;
            }

            @Override
            public void setJMSTimestamp(long l) throws JMSException {

            }

            @Override
            public byte[] getJMSCorrelationIDAsBytes() throws JMSException {
                return new byte[0];
            }

            @Override
            public void setJMSCorrelationIDAsBytes(byte[] bytes) throws JMSException {

            }

            @Override
            public void setJMSCorrelationID(String s) throws JMSException {

            }

            @Override
            public String getJMSCorrelationID() throws JMSException {
                return null;
            }

            @Override
            public Destination getJMSReplyTo() throws JMSException {
                return null;
            }

            @Override
            public void setJMSReplyTo(Destination destination) throws JMSException {

            }

            @Override
            public Destination getJMSDestination() throws JMSException {
                return null;
            }

            @Override
            public void setJMSDestination(Destination destination) throws JMSException {

            }

            @Override
            public int getJMSDeliveryMode() throws JMSException {
                return 0;
            }

            @Override
            public void setJMSDeliveryMode(int i) throws JMSException {

            }

            @Override
            public boolean getJMSRedelivered() throws JMSException {
                return false;
            }

            @Override
            public void setJMSRedelivered(boolean b) throws JMSException {

            }

            @Override
            public String getJMSType() throws JMSException {
                return null;
            }

            @Override
            public void setJMSType(String s) throws JMSException {

            }

            @Override
            public long getJMSExpiration() throws JMSException {
                return 0;
            }

            @Override
            public void setJMSExpiration(long l) throws JMSException {

            }

            @Override
            public int getJMSPriority() throws JMSException {
                return 0;
            }

            @Override
            public void setJMSPriority(int i) throws JMSException {

            }

            @Override
            public void clearProperties() throws JMSException {

            }

            @Override
            public boolean propertyExists(String s) throws JMSException {
                return false;
            }

            @Override
            public boolean getBooleanProperty(String s) throws JMSException {
                return false;
            }

            @Override
            public byte getByteProperty(String s) throws JMSException {
                return 0;
            }

            @Override
            public short getShortProperty(String s) throws JMSException {
                return 0;
            }

            @Override
            public int getIntProperty(String s) throws JMSException {
                return 0;
            }

            @Override
            public long getLongProperty(String s) throws JMSException {
                return 0;
            }

            @Override
            public float getFloatProperty(String s) throws JMSException {
                return 0;
            }

            @Override
            public double getDoubleProperty(String s) throws JMSException {
                return 0;
            }

            @Override
            public String getStringProperty(String s) throws JMSException {
                return null;
            }

            @Override
            public Object getObjectProperty(String s) throws JMSException {
                return null;
            }

            @Override
            public Enumeration getPropertyNames() throws JMSException {
                return null;
            }

            @Override
            public void setBooleanProperty(String s, boolean b) throws JMSException {

            }

            @Override
            public void setByteProperty(String s, byte b) throws JMSException {

            }

            @Override
            public void setShortProperty(String s, short i) throws JMSException {

            }

            @Override
            public void setIntProperty(String s, int i) throws JMSException {

            }

            @Override
            public void setLongProperty(String s, long l) throws JMSException {

            }

            @Override
            public void setFloatProperty(String s, float v) throws JMSException {

            }

            @Override
            public void setDoubleProperty(String s, double v) throws JMSException {

            }

            @Override
            public void setStringProperty(String s, String s2) throws JMSException {

            }

            @Override
            public void setObjectProperty(String s, Object o) throws JMSException {

            }

            @Override
            public void acknowledge() throws JMSException {

            }

            @Override
            public void clearBody() throws JMSException {

            }
        };
        try {
            JfinalConfig.start();
            LocalHuanxinConsumer.handler(message);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
